//获取地理位置的经纬度
export function getmap(value) {
    uni.request({
        url: 'https://restapi.amap.com/v3/geocode/geo',
        data: {
            key: '067ca0906391daca4ff7ee94e939eb2e',
            address: value
        },
        success: res => {
            let location = res.data.geocodes[0].location;
            let arr = location.split(",").map(i => Number(i));
            uni.openLocation({
                latitude: arr[1],
                longitude: arr[0],
                success: function() {

                }
            });
        }
    })
}